package com.woniuxy.cloud.carl.order.common;

public enum ServiceTypeEnum {
    /**
     * 服务类型：1、维修    2、保养   3、改装
     */
    REPAIR(1,"维修"),UPKEEP(2,"保养"),REFIT(3,"改装");
    private Integer code;
    private String status;

    public static ServiceTypeEnum getEnum(Integer code){
        for (ServiceTypeEnum value : ServiceTypeEnum.values()) {
            if (value.code==code) return value;
        }
        return null;
    }


    public Integer getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }

    ServiceTypeEnum(Integer code, String status) {
        this.code = code;
        this.status = status;
    }
}
